package com.swe727.spring2011.constraint1.server;

import java.rmi.RemoteException;

import com.swe727.spring2011.constraint1.message.Message;
import com.swe727.spring2011.constraint1.node.Node;
import com.swe727.spring2011.constraint1.node.NodeDataStore;

public class RegisterNodeHandler implements RegisterNodeRemote {

	@Override
	public void registerNode(Message<Node> registration) throws RemoteException {
		System.out.println("Registering node: " + registration.getData().getNodeId());
		NodeDataStore.getStore().add(registration);
	}
}
